package demo1;

public class Test {
    public static void walk(IRunning iRunning){
        iRunning.run();
    }

    public static void main(String[] args) {
        Dog dog = new Dog("小狗",1);
        walk(dog);
    }
}
